package com.ssy.lingxi.common.constant.manage;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 商城属性 - enum
 * @author fhj
 * @date 2021/09/28
 * @version 2.0.0
 */
public enum ShopPropertyEnum {

    UNION_B(1, "B端商城"),
    UNION_C(2, "C端商城"),
    SELF_B(3, "B端自营商城"),
    SELF_C(4, "C端自营商城")
    ;

    private final Integer code;

    ShopPropertyEnum(Integer code, String name) {
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return LanguageHolder.getName(this.getClass(),this.code);
    }
}
